package org.jianfa.mq.seckill.service;

import org.jianfa.mq.seckill.entity.po.OrderInfo;
import org.jianfa.mq.seckill.entity.po.SeckillOrder;
import org.jianfa.mq.seckill.entity.vo.GoodsVo;

public interface OrderService {

    SeckillOrder getSeckillOrderByUserIdAndGoodsId(Long userId, long goodsId);

    OrderInfo getOrderById(long orderId);

    OrderInfo createOrder(long userId, GoodsVo goods);

    void checkOrder(OrderInfo oldOrderInfo);
}

